import { createApp } from "vue";
import { createPinia } from "pinia";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
import "./style.css";
import App from "./App.vue";
import { OpenAPI } from "./api";
OpenAPI.BASE = ".";
OpenAPI.TOKEN = async () => {
  return localStorage.getItem("token") ?? "";
};
import "ant-design-vue/dist/reset.css";

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
const app = createApp(App);

app.use(pinia);
app.mount("#app");
